import request from '@/utils/request'

// 查询齿形列表
export function listTooth(query) {
  return request({
    url: '/hualian/tooth/list',
    method: 'get',
    params: query
  })
}

// 查询齿形详细
export function getTooth(toothId) {
  return request({
    url: '/hualian/tooth/' + toothId,
    method: 'get'
  })
}

// 新增齿形
export function addTooth(data) {
  return request({
    url: '/hualian/tooth',
    method: 'post',
    data: data
  })
}

// 修改齿形
export function updateTooth(data) {
  return request({
    url: '/hualian/tooth',
    method: 'put',
    data: data
  })
}

// 删除齿形
export function delTooth(toothId) {
  return request({
    url: '/hualian/tooth/' + toothId,
    method: 'delete'
  })
}
